/*
 * @Author: yx_ning
 * @Description:
 * @File: mysql
 * @Version: 1.0.0
 * @Date: 22/12/2023 上午9:50
 */
package config

type Mysql struct {
	GeneralDB `yaml:",inline" mapstructure:",squash"`
}

func (m *Mysql) Dsn() string {
	return m.Username + ":" + m.Password + "@tcp(" + m.Path + ":" + m.Port + ")/" + m.Dbname + "?" + m.Config
}

func (m *Mysql) GetLogMode() string {
	return m.LogMode
}
